<div class="easyui-layout plugins" data-options="fit:true" ui="buyInit" id="${id}">
	<div data-options="region:'north',border:false" class="queryContent">
		入库单号:&nbsp;&nbsp;<input id="buyCode" type="text" size="12"/>&nbsp;&nbsp;&nbsp; 
		供应商:&nbsp;&nbsp;<input id="supplier${id}" type="text" size="12"/>&nbsp;&nbsp;&nbsp; 
		入库日期:&nbsp;&nbsp;<input id="beginDate" type="text" size="14" class="Wdate"  readonly="readonly" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'});"/>
		----&nbsp;&nbsp;<input id="endDate" type="text" size="14" class="Wdate"  readonly="readonly" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'});"/>&nbsp;&nbsp;&nbsp; 
		<input type="button" class="right-button02" id="search" style="margin-left: 40px;cursor: pointer;" value="查 询" />
	</div>
	<div data-options="region:'center',border:false" style="width: 100%;height: 100%">
		<div id="buyList"></div>
	</div>
	<div id="editDialog">
		<form method="post" name="buyForm" id="buyForm">
			<table border="0" cellpadding="2" cellspacing="1" style="width: 100%">
				<tr>
					<td nowrap width="15%" >&nbsp;&nbsp;&nbsp;&nbsp;入库单号:</td>
					<td>
						<input type="hidden" name="buyID" id="buyID"/>
						<input type="text" name="buyCode" id="buyCode" class="text" style="width: 250px" size="40" readonly="readonly"/>
					</td>
					<td nowrap width="15%">&nbsp;&nbsp;&nbsp;&nbsp;供应商:</td>
					<td>
						<input type="text" name="supplierID" id="supplierID" class="text" style="width: 250px" size="40" />
					</td>
				</tr>
				<tr>
					<td >&nbsp;&nbsp;&nbsp;&nbsp;入库日期:</td>
					<td>
						<input type="text" name="buyDate" id="buyDate" class="text Wdate" style="width: 250px" 
						size="40" readonly="readonly" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd'});"/>
					</td>
					<td >&nbsp;&nbsp;&nbsp;&nbsp;仓库:</td>
					<td>
						<input type="text" name="storeHouseID" id="storeHouseID" class="text" style="width: 250px" size="40" />
					</td>
				</tr>
				<tr>
					<td >&nbsp;&nbsp;&nbsp;&nbsp;经办人:</td>
					<td>
						<input type="text" name="buyer" id="buyer" class="text" style="width: 250px" size="40" />
					</td>
					<td nowrap >&nbsp;&nbsp;&nbsp;&nbsp;备注:</td>
					<td>
						<input type="text" name="note" id="note" class="text" style="width: 250px" size="40"/>
					</td>
				</tr>
			</table>
			<input type="hidden" id="ids" name="ids"/>
			<input type="hidden" id="productids" name="productids"/>
			<input type="hidden" id="qtys" name="qtys"/>
			<input type="hidden" id="prices" name="prices"/>
			<input type="hidden" id="notes" name="notes"/>
			<input type="hidden" id="deleteids" name="deleteids"/>
		</form>
		<div id="buydetailList"></div>
	</div>
	<div id="selectDialog">
		种类:&nbsp;&nbsp;<input id="item" type="text" size="12"/>&nbsp;&nbsp;&nbsp; 
		商品编号:&nbsp;&nbsp;<input id="code" type="text" size="12"/>&nbsp;&nbsp;&nbsp; 
		商品名称:&nbsp;&nbsp;<input id="name" type="text" size="30"/>&nbsp;&nbsp;&nbsp; 
		<input type="button" class="right-button02" id="selectSearch" style="margin-left: 40px;cursor: pointer;" value="查 询" />
		<div id="productList"></div>
	</div>
</div>

